package com.shengsheng.expschedule.service.expschedule.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 学期表
 * </p>
 *
 * @author yuan
 * @since 2021-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("manage_semester")
@ApiModel(value="Semester对象", description="学期表")
public class Semester implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "学期名称",example = "2021学年下半年")
    private String semesterName;

    @ApiModelProperty(value = "学期起始日期(第一周第一天对应的日期)", example = "2021-01-01")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date semesterOriginDate;

    @ApiModelProperty(value = "学期总共周的数量", example = "18")
    private Integer semesterWeekTotal;

    @ApiModelProperty(value = "是否是当前学期", example = "false")
    private Boolean isCurrentSemester;

    @ApiModelProperty(value = "逻辑删除(1 已删除，0 未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
